<?php

namespace app\command;
use think\App;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use app\api\controller\TiktokPackage;
use think\console\InputOption;
class SpuInfoCommand extends  Command
{
    protected function configure()
    {
        $this->setName('spuConsummer')
            ->setDescription('spuConsummer')
            ->addArgument('param1', null, 'The integer parameter');
    }

    protected function execute(Input $input, Output $output)
    {
        $param1 =$input->getArgument('param1');
        (new TiktokPackage())->update_spu_sum($param1);
    }
}